<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class ScenePrize extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('scene_prize',function(Blueprint $table){
            $table->id();
            $table->bigInteger('scene_id')->default(0)->comment('场景ID');
            $table->bigInteger('scene_event_id')->default(0)->comment('事件ID');
            $table->string('code')->default('')->comment('奖品编号');
            $table->string('name')->default('')->comment('奖品名');
            $table->integer('integral')->default(0)->comment('奖励积分');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
